# -*- coding:utf-8 -*-
from django.conf.urls import url

from .views import CookbookView, CookbookListView, CookbookDetailView, AddFavView, UserMenuView, AddConcernView


urlpatterns = [
    url(r'^list/$', CookbookView.as_view(), name='cookbook_list'),
    url(r'^list/(?P<menu_type_id>\d+)$', CookbookListView.as_view(), name='cookbook_list_classify'),
    url(r'^detail/(?P<menu_id>\d+)$', CookbookDetailView.as_view(), name='cookbook_detail'),
    url(r'^addfav/$', AddFavView.as_view(), name='cookbook_add_fav'),
    url(r'^usermenu/(?P<user_id>\d+)$', UserMenuView.as_view(), name='user_menu'),
    url(r'^addconcern/$', AddConcernView.as_view(), name='cookbook_add_concern'),
]